package com.wmh.baseservice.merchant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wmh.baseservice.merchant.pojo.MerchantInfo;
import com.wmh.baseservice.merchant.pojo.MerchantPlotRegion;
import com.wmh.baseservice.common.mybatisplus.methods.CommonService;
import com.wmh.baseservice.user.pojo.UsInfo;
import com.wmh.baseservice.user.pojo.UsRentOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author wmh generator
 * @since 2022-01-04
 */
public interface MerchantPlotRegionService extends CommonService<MerchantPlotRegion> {

    /**
     * 区域列表
     */
    IPage<MerchantPlotRegion> getList(Page<Object> vegetablePage, Map<String, Object> map);

    /**
     * 用户端-租赁区域列表
     */
    IPage<MerchantPlotRegion> usList(Page<MerchantPlotRegion> merchantPlotRegionPage, @Param("map") Map<String, Object> map);

    /**
     * 租赁订单支付
     */
    void payAmount(UsRentOrder usRentOrder, MerchantPlotRegion merchantPlotRegion, UsInfo usInfo);

    /**
     * 租赁订单微信支付
     */
    void wechatPay(String orderNum);

    /**
     * 获取区域原商家id
     */
    MerchantInfo getRawMerchantInfo(Long id);
}
